Routers: IOS
Packet Tracer 5.1 uses a simplified model of the Cisco IOS. Click on the CLI
tab in the router configuration window to access the Cisco IOS command line
interface for the router. Use the Copy and Paste
buttons to copy and paste text to or from the command line. This page lists the
Cisco IOS command tree for the Cisco 2811 router which uses the superset
command tree of all routers in Packet Tracer 5.1. The Cisco 2620XM/2621XM
routers use a subset of this command tree. The tree contains only Cisco IOS
command chains that are supported by the Packet Tracer 5.1.
User Mode
Enable Mode
Global Mode
Standard Access List Configuration Mode
-
default
-
deny
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
permit
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
deny
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
exit
-
no
-
deny
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
permit
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
permit
-
A.B.C.D [ A.B.C.D ]
-
any
-
host A.B.C.D
-
remark LINE
|
Extended Access List Configuration Mode
-
default
-
[ deny | permit ] [ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | host A.B.C.D ]
-
[ deny | permit ] [ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | eq <0-65535> | host A.B.C.D | gt <0-65535>
| lt <0-65535> | neq <0-65535> | range <0-65535>
<0-65535> ] [ eq <0-65535> | gt <0-65535> | lt
<0-65535> | neq <0-65535> | range <0-65535> <0-65535> ]
-
deny
-
[ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| host A.B.C.D ]
-
[ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| eq <0-65535> | host A.B.C.D | gt <0-65535> | lt <0-65535> |
neq <0-65535> | range <0-65535> <0-65535> ] [ eq
<0-65535> | gt <0-65535> | lt <0-65535> | neq <0-65535>
| range <0-65535> <0-65535> ]
-
exit
-
no
-
[ deny | permit ] [ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | host A.B.C.D ]
-
[ deny | permit ] [ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [
A.B.C.D A.B.C.D | any | eq <0-65535> | host A.B.C.D | gt <0-65535>
| lt <0-65535> | neq <0-65535> | range <0-65535>
<0-65535> ] [ eq <0-65535> | gt <0-65535> | lt
<0-65535> | neq <0-65535> | range <0-65535> <0-65535> ]
-
permit
-
[ icmp | ip ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| host A.B.C.D ]
-
[ tcp | udp ] [ A.B.C.D A.B.C.D | any | host A.B.C.D ] [ A.B.C.D A.B.C.D | any
| eq <0-65535> | host A.B.C.D | gt <0-65535> | lt <0-65535> |
neq <0-65535> | range <0-65535> <0-65535> ] [ eq
<0-65535> | gt <0-65535> | lt <0-65535> | neq <0-65535>
| range <0-65535> <0-65535> ]
-
remark LINE
|
Ethernet / FastEthernet / GigabitEthernet Interface Mode
-
arp
timeout <0-2147483>
-
bandwidth
<1-10000000>
-
cdp
enable
-
delay
<1-16777215>
-
description
LINE
-
duplex
[ auto | full | half ]
-
exit
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address
-
hello-interval eigrp <1-65535> <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication [ message-digest | null ]
-
authentication-key LINE
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
message-digest-key <1-255> md5 LINE
-
priority <0-255>
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
mac-address
H.H.H
-
ipv6
-
address
-
autoconfig
-
ipv6-prefix/prefix length
-
ipv6-address
-
prefix-name ipv6-prefix/prefix-length
-
enable
-
rip WORD
-
default-information originate
-
enable
-
eigrp <1-65535>
-
summary-address eigrp <1-65535> X:X:X:X::X/<0-128> [ <1-255> ]
-
hello-interval eigrp <1-65535> <1-65535>
-
ospf
-
<1-65535> area area-id [instance instance-id]
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
priority <0-255>
-
dhcp
-
client pd WORD
-
server WORD
-
nat
-
prefix X:X:X:X::X/<0-128> [v4-mapped] [WORD]
-
no
-
arp timeout
-
bandwidth
-
cdp enable
-
delay
-
description
-
duplex
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address [ dhcp ]
-
hello-interval eigrp <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication
-
authentication-key
-
cost
-
dead-interval
-
hello-interval
-
message-digest-key <1-255>
-
priority
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
ipv6
-
address
-
autoconfig
-
ipv6-prefix/prefix length
-
ipv6-address
-
prefix-name ipv6-prefix/prefix-length
-
dhcp
-
client pd WORD
-
server WORD
-
eigrp <1-65535>
-
ospf
-
<1-65535> area area-id [instance instance-id]
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
priority <0-255>
-
summary-address eigrp <1-65535> X:X:X:X::X/<0-128> [ <1-255> ]
-
hello-interval eigrp <1-65535> <1-65535>
-
nat
-
rip WORD
-
default-information originate
-
enable
-
mac-address
-
shutdown
-
speed
-
shutdown
-
speed [ 10 | 100 | 1000 | auto ] (10/100 options
are only available for FastEthernet and GigabitEthernet interfaces and
10/100/1000 options are only available for GigabitEthernet interfaces
respectively)
|
Ethernet / FastEthernet / GigabitEthernet Sub-Interface
Mode
-
arp
timeout <0-2147483>
-
bandwidth
<1-10000000>
-
delay
<1-16777215>
-
description
LINE
-
encapsulation
dot1Q <1-1005> [ native ]
-
exit
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address
-
hello-interval eigrp <1-65535> <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication [ message-digest | null ]
-
authentication-key LINE
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
message-digest-key <1-255> md5 LINE
-
priority <0-255>
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
no
-
arp timeout
-
bandwidth
-
delay
-
description
-
encapsulation dot1Q
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address [ dhcp ]
-
hello-interval eigrp <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication
-
authentication-key
-
cost
-
dead-interval
-
hello-interval
-
message-digest-key <1-255>
-
priority
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
shutdown
-
shutdown
|
Serial Interface Mode
-
bandwidth
<1-10000000>
-
cdp
enable
-
clock rate <1200-4000000> (only
certain clock rates that are listed are valid)
-
delay
<1-16777215>
-
description
LINE
-
encapsulation
-
hdlc
-
ppp
-
frame-relay [ ietf ]
-
exit
-
frame-relay
-
interface-dlci <16-1007>
-
lmi-type [ ansi | cisco | q933a ]
-
map ip A.B.C.D <16-1007>
-
broadcast [ cisco | ietf ]
-
cisco [ broadcast ]
-
ietf [ broadcast ]
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address A.B.C.D A.B.C.D
-
hello-interval eigrp <1-65535> <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication [ message-digest | null ]
-
authentication-key LINE
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
message-digest-key <1-255> md5 LINE
-
priority <0-255>
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
keepalive
-
no
-
bandwidth <1-10000000>
-
cdp enable
-
clock rate
-
delay
-
description
-
encapsulation
-
frame-relay
-
interface-dlci <16-1007>
-
lmi-type [ ansi | cisco | q933a ]
-
map ip A.B.C.D
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address [ dhcp ]
-
hello-interval eigrp <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication
-
authentication-key
-
cost
-
dead-interval
-
hello-interval
-
message-digest-key <1-255>
-
priority
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
keepalive
-
ppp
-
authentication
-
pap sent-username
-
shutdown
-
ppp
-
authentication chap [ pap ]
-
authentication pap [ chap ]
-
shutdown
|
VLAN Interface Mode
-
arp
timeout <0-2147483>
-
bandwidth
<1-10000000>
-
delay
<1-16777215>
-
description
LINE
-
exit
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address
-
hello-interval eigrp <1-65535> <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication [ message-digest | null ]
-
authentication-key LINE
-
cost <1-65535>
-
dead-interval <1-65535>
-
hello-interval <1-65535>
-
message-digest-key <1-255> md5 LINE
-
priority <0-255>
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
mac-address
H.H.H
-
no
-
arp timeout
-
bandwidth
-
delay
-
description
-
ip
-
access-group [ <1-199> | WORD ] [ in | out ]
-
address [ dhcp ]
-
hello-interval eigrp <1-65535>
-
nat [ inside | outside ]
-
ospf
-
authentication
-
authentication-key
-
cost
-
dead-interval
-
hello-interval
-
message-digest-key <1-255>
-
priority
-
split-horizon
-
summary-address eigrp <1-65535> A.B.C.D A.B.C.D [ <1-255> ]
-
mac-address
-
shutdown
-
shutdown
|
VLAN Configuration Mode
-
exit
-
no
-
vlan <1-1005>
-
vtp
-
client
-
password
-
transparent
-
v2-mode
-
vlan
<1-1005> [ name ] [ WORD ]
-
vtp
-
client
-
domain WORD
-
password WORD
-
server
-
transparent
-
v2-mode
|
Line Configuration Mode
-
access-class
[ <1-199> | <1300-2699> | WORD ] [ in | out ]
-
databits
[ 5 | 6 | 7 | 8 ]
-
default
[ databits | flowcontrol | history size | parity | speed | stopbits ]
-
exit
-
exec-timeout
<0-35791> [<0-2147483>]
-
flowcontrol
[ NONE | hardware | software ]
-
history
size <0-256>
-
ipv6
access-class WORD [in | out]
-
login
[ local ]
-
logging
synchronous
-
motd-banner
-
no
-
[ access-class [ <1-199> | <1300-2699> | WORD ] [ in | out ] |
databits | flowcontrol | history size | login | motd-banner | parity | password
| session-limit | speed | stopbits ]
-
exec-timeout
-
history size
-
ipv6 access-class WORD [in | out]
-
logging synchronous
-
parity
[ even | mark | none | odd | space ]
-
password
-
session-limit
<0-4294967295>
-
speed
<0-4294967295>
-
stopbits [ 1 | 1.5 | 2 ]
|
Router EIGRP Mode
-
auto-summary
-
exit
-
metric
weights <0-8> <0-256> <0-256> <0-256> <0-256>
<0-256>
-
network
A.B.C.D [ A.B.C.D ]
-
redistribute
-
connected [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
eigrp <1-65535> [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
rip [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
static [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric bandwidth delay reliability effective BW MTU ]
-
no
-
auto-summary
-
metric weights
-
network A.B.C.D [ A.B.C.D
-
redistribute
-
connected [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
eigrp <1-65535> [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
rip [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
static [metric <1-4294967295> <0-4294967295> <0-255> <1-255> <1-65535>]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric bandwidth delay reliability effective BW MTU ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
variance <1-128>
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
variance <1-128>
|
Ipv6 Router Eigrp Mode
-
router-id
A.B.C.D
-
metric weights
<0-8> <0-255> <0-255> <0-255> <0-255> <0-255>
-
shutdown
-
no
-
router-id
-
metric weights <0-8> <0-255> <0-255> <0-255> <0-255> <0-255>
-
shutdown
|
Router OSPF Mode
-
area
-
[ <0-4294967295> | A.B.C.D ] authentication [ message-digest ]
-
[ <0-4294967295> | A.B.C.D ] nssa [no-summary]
[ <0-4294967295> | A.B.C.D ] virtual-link A.B.C.D
default-information
originate
exit
log-adjacency-changes
[ detail ]
network
A.B.C.D A.B.C.D area [ <0-4294967295> | A.B.C.D ]
redistribute
-
connected [metric <0-16777214>] [subnets]
-
eigrp <1-65535> [metric <0-16777214>] [subnets]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric ospf-default-metric ] [subnets]
-
rip [metric <0-16777214>] [subnets]
-
static [metric <0-16777214>] [subnets]
no
-
area
-
[ <0-4294967295> | A.B.C.D ] authentication [ message-digest ]
-
[ <0-4294967295> | A.B.C.D ] nssa [no-summary]
[ <0-4294967295> | A.B.C.D ] virtual-link A.B.C.D
default-information
log-adjacency-changes [ detail ]
network A.B.C.D A.B.C.D area [ <0-4294967295> | A.B.C.D ]
redistribute
-
connected [metric <0-16777214>] [subnets]
-
eigrp <1-65535> [metric <0-16777214>] [subnets]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external } ] [ metric ospf-default-metric ] [subnets]
-
rip [metric <0-16777214>] [subnets]
-
static [metric <0-16777214>] [subnets]
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
|
Ipv6 Router Ospf Mode
-
router-id A.B.C.D
-
area area-id
-
default-cost <0-16777215>
-
nssa [no-summary]
-
stub [no-summary]
-
virtual-link A.B.C.D
-
log-adjacency-changes [ detail ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
no
-
log-adjacency-changes [ detail ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
|
Router RIP Mode
-
auto-summary
-
default-information
originate
-
distance
<1-255>
-
exit
-
network
A.B.C.D
-
redistribute
-
connected [metric [<0-16> | transparent]]
-
eigrp <1-65535> [metric [<0-16> | transparent]]
-
static [metric [<0-16> | transparent]]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external }] [ metric default-metric ]
-
no
-
auto-summary
-
default-information
-
distance <1-255>
-
network A.B.C.D
-
redistribute
-
connected [metric [<0-16> | transparent]]
-
eigrp <1-65535> [metric [<0-16> | transparent]]
-
static [metric [<0-16> | transparent]]
-
ospf <1-65535> [ match { external [1 | 2] | internal | nssa-external }] [ metric default-metric ]
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
timers basic
-
version <1-2>
-
passive-interface
-
Ethernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
FastEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
GigabitEthernet <0-9>/<0-24>[ . ][ <0-4294967295> ]
-
Loopback <0-2147483647>
-
Serial <0-9>/<0-24>
-
default
-
timers
basic <0-4294967295> <1-4294967295> <0-4294967295>
<1-4294967295>
-
version <1-2>
|
Ipv6 Router RIP Mode
-
distance <1-254>
-
no
distance
|
DHCP Pool Configuration Mode
-
default-router
A.B.C.D
-
dns-server
A.B.C.D
-
exit
-
network
A.B.C.D A.B.C.D
-
no dns-server
|
Ipv6 DHCP Pool Configuration Mode
-
prefix-delegation
-
X:X:X:X::X/<0-128> WORD [lifetime] <60-4294967295>
-
pool WORD [lifetime] <60-4294967295>
-
dns-server
X:X:X:X::X
-
exit
-
no
-
prefix-delegation
-
X:X:X:X::X/<0-128> WORD [lifetime] <60-4294967295>
-
pool WORD [lifetime] <60-4294967295>
|
Rommon Mode
-
boot
-
confreg config-register-number
-
dir
flash:
-
help
-
reset
-
set
-
tftpdnld
-
unset variable
- variable=value
|